package com.cqs.learning.reflect.asm;

import jdk.internal.org.objectweb.asm.ClassReader;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Map;

/**
 * @author lixiaowen
 * @create 2020-01-04
 */
public class AsmDemo {

    public static void main(String[] args) throws IOException {
        ClassReader classReader = new ClassReader(new FileInputStream("docs/classes/$Proxy0.class"));
        System.out.println(classReader);

        Map<Thread,StackTraceElement[]> map=Thread.getAllStackTraces();

        StackTraceElement stackTraceElement;

        System.out.println(map);
    }
}
